package com.dave.admin.modular.boss.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dave.admin.common.base.IdEntity;

/**
 * <p>
 * 后台用户和角色关系表
 * </p>
 *
 * @author Dave
 */
@TableName("boss_user_role")
public class UserRole extends IdEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 角色ID
     */
    private String roleId;

    public UserRole() {
    }


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public static final String USER_ID = "user_id";

    public static final String ROLE_ID = "role_id";

    @Override
    public String toString() {
        return "UserRole{" +
                "userId=" + userId +
                ", roleId=" + roleId +
                "}";
    }
}
